package org.hope.lee.service;

import java.util.List;

import org.hope.lee.dao.UserDao;
import org.hope.lee.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class UserServiceImpl implements UserService{
	@Autowired
	private UserDao userDao;
	
	@Override
	public User findUserById(Integer id) {
		
		List<User> list = userDao.findUsers();
		return list.get(id);
	}
	
}
